package com.gk.ldj.fastdev.testcase;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;

import oracle.sql.BLOB;

import com.gk.ldj.base.Configure;
import com.gk.ldj.base.Json;
import com.gk.ldj.base.Result;
import com.gk.ldj.fastdev.engine.Engine;

public class TestBlob
{
	public static void test()
	{
		testAdd();
		//testRead();
	}
	
	public static void testAdd()
	{
		Json j=new Json();
		j.setAttr("name", "hello");
		j.setAttr("type", "html");
		j.setAttr("content", "<html>hello!</html>");
		Result r=Engine.excute("addData", j, "1");
	}
	
	public static void testRead()
	{
		Result r=Engine.excute("getDataByName", "{name:testAdd}", "1");
		if(r.flag==true)
		{
			if(r.data!=null)
			{
				System.out.println(r.data.toString());
			}
		}
	}
}
